<template>
  <div class="song_check_pop" @click="confirm()">
    <div class="content">
      <!-- <p>由于版权保护，该资源仅限中国大陆使用。</p> -->
      <p>{{message}}</p>
      <div>
        <!-- <span class="atr">定位有误？</span> -->
        <span class="true" @click="confirm()">知道了</span>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  props: ["message"],
  data() {
    return {};
  },
  methods: {
    confirm() {
      this.$store.commit("song_check/setSongCheckData", {
        success: true,
        message: "歌曲加载中。。。"
      });
      // 如果是歌曲详情页就直接返回上一页
      if (this.$route.name == "SongDetail") {
        this.$router.go(-1);
      }
    }
  }
};
</script>
<style lang="scss" scoped>
.song_check_pop {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  z-index: 1001;
  background-color: rgba($color: #000000, $alpha: 0.5);
  .content {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    margin: auto;
    width: 85%;
    height: 2rem;
    box-sizing: border-box;
    background-color: #fff;
    border-radius: 0.2rem;
    padding: 0.3rem 0.3rem;
    p {
      text-align: left;
      font-size: 0.34rem;
      color: #b7b7b7;
    }
    div {
      position: absolute;
      bottom: 0.3rem;
      right: 0.3rem;
      text-align: right;
      span {
        font-size: 0.3rem;
        color: #ea2000;
      }
      span.atr {
        padding-right: 0.2rem;
      }
    }
  }
}
</style>